package com.atguigu.tingshu.test;

import com.atguigu.tingshu.model.album.AlbumInfo;

import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;

public class MethodReturnType {

    public AlbumInfo show() {
        return null ;
    }

    public List<AlbumInfo> method() {
        return null ;
    }

    public Map<String , List<AlbumInfo>> function() {
        return null ;
    }

    public static void main(String[] args) throws NoSuchMethodException {

        // 获取MethodReturnType类的字节码文件对象
        Class<MethodReturnType> clazz = MethodReturnType.class;
        Method method = clazz.getMethod("function");
        System.out.println(method.getReturnType());
        System.out.println(method.getGenericReturnType());

    }

}
